package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;


/**
 * <p>
 * 仓库计费合同DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value="ContractDTO对象", description="仓库计费合同")
public class ContractDTO extends BasicEntity {


    @ApiModelProperty(value = "所属机构",hidden = true)
    private String groupCode;

    @ApiModelProperty(value = "状态：0启用、1停用")
    private String status;


    @ApiModelProperty(value = "合同号")
    private String contractNo;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;




    @ApiModelProperty(value = "生效日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtEffectiveBegin;

    @ApiModelProperty(value = "生效日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtEffectiveEnd;




    @ApiModelProperty(value = "失效日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtIneffectiveBegin;

    @ApiModelProperty(value = "失效日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtIneffectiveEnd;


    @ApiModelProperty(value = "第几页",example="1")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数",example="10")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
